package com.schoolET.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 微信用户
 * </p>
 *
 * @author lin
 * @since 2024-06-04
 */
@Getter
@Setter
@ApiModel(value = "Wechat对象", description = "微信用户")
public class Wechat implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("微信的openid")
    private String openId;

    @ApiModelProperty("微信用户昵称")
    private String nickName;

    @ApiModelProperty("微信用户手机号")
    private String phone;

    @ApiModelProperty("用户创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("用户昵称更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("0存在: 1删除")
    private Integer flag;
}
